package com.optimize2;

/**
 * Time    : 2023/3/22 15:40
 * Author  : 王摇摆
 * FileName: Vehicle.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class Vehicle {
    public void landRun(String name) {
        System.out.println(name + "可以在陆地上行驶！");
    }

    public void waterRun(String name) {
        System.out.println(name + "可以在水上行驶！");
    }

    public void airRun(String name) {
        System.out.println(name + "可以在空中行驶！");
    }
}
